﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhanQuyen.aspx.cs" Inherits="WebApplication.Admin.PhanQuyen"
    MasterPageFile="~/Admin/Web.Master" %>

<asp:Content ContentPlaceHolderID="Header" runat="server">
    <style>
        .button
        {
            border-left: 1px solid #dedede;
            border-top: 1px solid #dedede;
            float: none;
            margin: 0;
            text-decoration: none;
            background: #EAEAEA url(../images/white-grad.png) repeat-x left top;
            border-right: 1px solid #bbb;
            border-bottom: 1px solid #bfbfbf;
            padding: 4px;
            display: inline;
            display: inline-block;
            cursor: pointer;
            font-size: 80%;
            font-family: "Lucida Grande" , Tahoma, Arial, sans-serif;
            line-height: 100%;
            color: #3D3D3D;
            -webkit-box-shadow: rgba(0,0,0,.15) 0px 1px 3px;
            -moz-box-shadow: rgba(0,0,0,.15) 0px 1px 3px;
            box-shadow: rgba(0,0,0,.15) 0px 1px 3px;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px8px;
            border-radius: 4px;
            font-weight: bold;
            text-align: left;
            font-size: 11px;
        }
        .style1
        {
            width: 63px;
        }
    </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="maint" runat="server">
    <fieldset>
        <legend>Phân quyền</legend>
        <table>
            <tr>
                <td>
                    Nhân viên
                </td>
                <td>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="Dlnhanvien" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Dlnhanvien_SelectedIndexChanged">
                            </asp:DropDownList>
                        </ContentTemplate>
                        <Triggers>
                           <asp:PostBackTrigger ControlID="Dlnhanvien" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    Chức năng
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                Xem
                            </td>
                            <td>
                                <input type="checkbox" runat="server" id="ckxem" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Sửa
                            </td>
                            <td>
                                <input type="checkbox" runat="server" id="cksua" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Xóa
                            </td>
                            <td>
                                <input type="checkbox" runat="server" id="ckxoa" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Thêm mới
                            </td>
                            <td>
                                <input type="checkbox" runat="server" id="ckthemmoi" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td>
                    Quyền chưa cấp
                </td>
                <td class="style1">
                </td>
                <td>
                    Quyền Đã cấp
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hfId" runat="server" />
                    <asp:ListBox runat="server" ID="Lbquyenchuacap" Height="422px" Width="285px"></asp:ListBox>
                </td>
                <td class="style1">
                    <asp:Button ID="btnchon" runat="server" Text=">" CssClass="button" OnClick="btnchon_Click" /><br />
                    <asp:Button ID="btnbochon" runat="server" Text="<" CssClass="button" OnClick="btnbochon_Click" /><br />
                </td>
                <td>
                    <asp:ListBox runat="server" ID="lbquyendacap" AutoPostBack="True" 
                        OnSelectedIndexChanged="lbquyendacap_SelectedIndexChanged" Height="453px" 
                        Width="225px">
                    </asp:ListBox>
                </td>
            </tr>
        </table>
        </div>
    </fieldset>
    <div>
        <asp:LinkButton runat="server" ID="lbtncapnhap" CssClass="btn btn-info" OnClick="lbtncapnhap_Click">Cập nhập</asp:LinkButton>
    </div>
</asp:Content>
